﻿
namespace RiaMVVM.Example.Web
{
	using System;
	using System.Collections.Generic;
	using System.ComponentModel;
	using System.ComponentModel.DataAnnotations;
	using System.Linq;
	using System.ServiceModel.DomainServices.Hosting;
	using System.ServiceModel.DomainServices.Server;

	public class Product
	{
		[Key]
		public string Name { get; set; }
	}

	[EnableClientAccess()]
	public class ExampleDomainService : DomainService
	{
		public IQueryable<Product> GetProducts()
		{
			return new List<Product>()
			{
				new Product { Name = "Bike" },
				new Product { Name = "Car" },
				new Product { Name = "Chicken" }
			}.AsQueryable();
		}
	}
}


